<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <title>用户注册</title>
  <style>
    html, body {
      height: 100%;
      margin: 0;
      font-family: Arial, sans-serif;
      background-size: cover;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .container {
      width: 100%;
      max-width: 400px;
      padding: 20px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
      background-color: rgba(255, 255, 255, 0.85);
      border-radius: 8px;
      text-align: center;
    }

    .header {
      padding: 20px 0;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      margin-bottom: 20px;
    }

    .form-group {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      margin-bottom: 15px;
    }

    .form-group label {
      margin-right: 10px;
      font-weight: bold;
      width: 60px;
      text-align: right;
    }

    input[type="email"],
    input[type="password"],
    select {
      flex: 1;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    input[type="radio"] {
      margin-right: 5px;
    }

    .radio-group {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 15px;
    }

    .radio-group label {
      margin-right: 10px;
      font-weight: normal;
    }

    input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #337ab7;
      border: none;
      color: white;
      font-size: 16px;
      border-radius: 4px;
      cursor: pointer;
    }

    input[type="submit"]:hover {
      background-color: #286090;
    }
  </style>
</head>
<body>
<div class="container">
  <div class="header">
    <h1>用户注册</h1>
  </div>

  <form action="RegisterServlet" method="post">
    <div class="form-group">
      <label for="email">邮箱：</label>
      <input type="email" id="email" name="email" required />
    </div>

    <div class="form-group">
      <label for="password">密码：</label>
      <input type="password" id="password" name="password" required />
    </div>

    <div class="form-group">
      <label>性别：</label>
      <div class="radio-group">
        <label><input type="radio" name="gender" value="男" required />男</label>
        <label><input type="radio" name="gender" value="女" required />女</label>
      </div>
    </div>

    <div class="form-group">
      <label for="city">城市：</label>
      <select id="city" name="city" required>
        <option value="北京">北京</option>
        <option value="上海">上海</option>
        <option value="广州">广州</option>
        <option value="深圳">深圳</option>
      </select>
    </div>

    <input type="submit" value="注册" />
  </form>
</div>
</body>
</html>
